myDbconfig={
    //  "host"     : "127.0.0.1",
    //         "user"     : "root",
    //         "password" : "123456",
    //         "port"     : "3306",
       
     "database" : "miapi"
}
app.begin(async (req,res)=>{
    if(req.url.endsWith("/static/main.js")){
        res.alreadySend = true;
        r= await M.getRemoteCacheByUrl("file:"+staticPath+"static/main.js");
      
        res.renderJs(r)
      }
    })

Db=M.getMySql(myDbconfig);
const interfaceManageService=require(staticPath+ "InterfaceManageService")(Db,M);
require(staticPath+"BaseController.js")(M,Db,app);
require(staticPath+"InterfaceManageeController.js")(M,app,Db,interfaceManageService);





